package com.RedRiver.hospitalsystem.personal_service.infra.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙世超
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_department")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(value = "department_id", type = IdType.AUTO)
    private Integer departmentId;

    /**
     * 部门位置
     */
    private String departmentLocation;

    /**
     * 部门编号
     */
    private Integer departmentNumber;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 首字母简写
     */
    private String departmentFirstletter;

    /**
     * 部门状态
     */
    private Integer departmentState;

    /**
     * 创建日期
     */
    private LocalDateTime createTime;

    /**
     * 逻辑删除
     */
    @TableField("isDeleted")
    @TableLogic
    private Integer isDeleted;
}
